<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt"%>
<%@ taglib prefix="cms" uri="http://cms.gxsoft.com/tags-cms"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>用人单位信息管理--增加</title>
<link href="<%=request.getContextPath()%>/css/reset.css" rel="stylesheet" type="text/css"/>
<link href="<%=request.getContextPath()%>/css/style.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript">
	function selectEmployer(){
		var arr = showModalDialog("<%=request.getContextPath()%>/EmployerInfo.do?method=find", "", "dialogWidth:550pt;dialogHeight:400pt;help:0;status:0");
		if(arr != null){
			var id = arr[0][0];
			var name = arr[0][1];
			document.form1.caseInfoUnitId.value = id;
			document.form1.unit.value = name;
		}
	}
	function check(){
		var frm = document.form1;
		if(frm.caseInfoUnitId.value == ""){
			alert("请选择被立案单位！");
			return false;
		}
		if(frm.caseInfoProperty.value == ""){
			alert("请选择案件性质！");
			return false;
		}
		if(frm.caseInfoSource.value == ""){
			alert("请选择案件来源！");
			return false;
		}
	}
</script>

</head>

<body>
<form name="form1" action="<%=request.getContextPath()%>/CaseInfo.do?method=add" method="post" onsubmit="return check()">
<table width="70%">
  <tr>
    <td width="25%" align="right" class="bg_blue"><p><font color="red">*</font>&nbsp;&nbsp;被立案单位：</p>
    </td>
    <td width="75%" align="left" ><input type="hidden" name="caseInfoUnitId" value="${cInfo.employerInfo.empInfoId}"><input type="text" name="unit" size="30" value="${cInfo.employerInfo.empInfoName}" readonly onclick="javascript:selectEmployer()"> <input class="buttonadd" type="button" value="选择" onclick="javascript:selectEmployer()">&nbsp;</td>
  </tr>
  <tr>
    <td class="bg_blue"align="right"><font color="red">*</font>&nbsp;&nbsp;案件性质：</td>
    <td align="left">
    <cms:selectAll dataType="004" name="caseInfoProperty" firstTitle="请选择.."></cms:selectAll>
    </td>
  </tr>
  <tr>
    <td class="bg_blue"align="right"><font color="red">*</font>&nbsp;&nbsp;案件来源：</td>
    <td align="left">
    <cms:selectAll dataType="005" name="caseInfoSource" firstTitle="请选择.." key="${cInfo.caseInfoSource}"></cms:selectAll>
    </td>
  </tr>
  <tr>
    <td width="25%" align="right" class="bg_blue"><p>案由：</p>
    </td>
    <td width="75%" align="left" ><input type="text" name="caseInfoOrigin" maxlength="200">&nbsp;</td>

  <tr>
    <td class="bg_blue"align="right">案情及立案依据：</td>
    <td align="left"><textarea name="caseInfoBasiccondiBeginres" cols="50" rows="10">${cInfo.caseInfoBasiccondiBeginres}</textarea></td>
  </tr>
  <tr>
    <td class="bg_blue"align="right">备注：</td>
    <td align="left"><input type="text" name="caseInfoRemark" maxlength="1000" value="${cInfo.caseInfoRemark}"></td>
  </tr>
  <tr>
    <td class="nohover" colspan="2" align="center"><input class="buttonsubmit" type="submit" value="提交">&nbsp;<input class="buttonreset" type="reset" value="重置"> <input class="buttonreturn" type="button" value="返回" onClick="history.go(-1)"></td>
  </tr>
</table>
</form>
</body>
</html>
